package com.wdc.principles.segregation;

public class A {
    public static void use(Interface1 interface1) {
        interface1.method1();
        interface1.method2();
        interface1.method3();
    }

    public static void main(String[] args) {
     B b = new B();
       use(b);

        D d = new D();
        use(d);

    }



}
